<?php

namespace App\Models;

/**
 * App\Models\SysReport
 * This is the model class for table "sys_report".
 *
 * @property int $id 自增ID
 * @property string $user_id 用户ID
 * @property int $category_id 对应[sys_report_category]表ID
 * @property int $deal_admin_id 处理的管理员ID
 * @property string $target_id 被举报目标ID
 * @property int $target_type 被举报目标类型：1文章，2笔记，3评论，4回复，5收藏夹
 * @property string $content 内容
 * @property int $status 处理状态，0未处理，1已忽略，2已处理
 * @property int $is_deleted 是否删除，0正常，1删除
 * @property int $deal_at 处理时间
 * @property int $created_at 创建时间戳
 * @property int $updated_at 更新时间戳
 * @method static \Illuminate\Database\Eloquent\Builder|SysReport newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|SysReport newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|SysReport query()
 */
class SysReport extends BaseModel
{

    protected $table = "sys_report";
    protected $primaryKey = "id";
    protected $keyType = "int";
    public $timestamps = true;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'created_at' => 'timestamp',
        'updated_at' => 'timestamp'
    ];

    /**
     * select columns
     * @var array
     */
    public $fields = [
        'article' => ['id', 'category_id', 'target_id', 'content', 'status'],
    ];

}
